<{include file="_head.html"}>

<{include file="head.html"}>
<script type="text/javascript">
 $(function(){
     //验证码
    $(".fa").click(function(){
        var mobile = $(':input[name=phone]').val();
        // mobile=$.trim(mobile)
        if(mobile!='' && mobile!=null){
            var pattern =/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/;
             if(pattern.test(mobile)){
                $.post(
                    "my_account.php?action=mobile",
                    {mobile:mobile},
                    function(data){
                        if(data.error=='0' && data.result=='0'){
                            alert("发送成功");
                        }else if(data.error=='1'){
                            alert("该手机已经注册过");
                        }else if(data.result!='0'){
                            alert("发送失败，请重试");
                        } 
                    },'json'
                );
             }else{
                alert("手机格式不正确");
             } 
        }else{
            alert("请输入手机号");
        }  
    })




 })   
</script>

<!-- 主体内容-开始 -->
<div class="j_main">
	<!-- <div class="j_mainz">
    	<a href="user_account.php" class="j_mainz1 j_mainz1_hov">我的帐号</a>
    	<a href="#" class="j_mainz1">我的消息</a>
    	<a href="#" class="j_mainz1">我的收藏</a>
    	<a href="#" class="j_mainz1">我关注的用户</a>
    </div> -->
    <{include file="user_left.html"}>
	<div class="j_mainy">
    	<div class="j_mainyt">
        	<a href="my_account.php" class="j_mainyt1 j_mainyt1_hov">帐号信息</a>
        	<a href="my_account_third.php" class="j_mainyt1">社交账号授权</a>
        	<a href="my_account_pwd.php" class="j_mainyt1">修改密码</a>
        </div>

    <form action="" method="post" name="myForm" enctype='multipart/form-data'>
        <div class="j_mainyn">
        	<div class="j_myzhz">
            	<span class="j_myzhz1">
                <{if $user.avatar !='' && $user.avatar !=null }>
                 <img src="upload/user/large/<{$user.avatar}>" width="154px;" height="164px;" /> 
                <{else}>
                  <img src="images/avatar_default.jpg"/>
                <{/if}>
                </span>
                <!-- <a href="#" class="j_myzhz2">修改头像</a> -->
                 <input type="file" name="avatar" class="j_myzhz2" value="修改头像" />
            </div>
            <div class="j_myzhy">
                <div class="j_hwjly">
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">真实姓名</span>
                        <div class="j_hwjlyny"><span class="j_myzhxm"><{$user.real_name}></span></div>
                    </div>
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">用户昵称</span>
                        <div class="j_hwjlyny">
                            <input type="text" class="j_bjzlnxny2" name="account" value="<{$user.account}>" />
                        </div>
                    </div>
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</span>
                        <div class="j_hwjlyny">
                            <{if $user.email==''}>
                            <input type="text" name="email" class="j_bjzlnxny2" value="<{$user.email}>" />
                            <{else}>
                            <span class="j_myzhxm"><{$user.email}></span>
                            <{/if}>
                        </div>
                    </div>
                    <!-- <div class="j_hwjlyn">
                        <span class="j_hwjlynz">&nbsp;</span>
                        <div class="j_hwjlyny">
                        	<span class="j_myzhxm">您的邮箱尚未验证，<a href="#">重新发送验证邮件</a></span>
                        </div>
                    </div> -->
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机</span>
                        <div class="j_hwjlyny">
                            <{if $user.phone==''}>
                            <input type="text" name="phone" class="j_bjzlnxny2" value="<{$user.phone}>"/>
                            <a href="javascript:;" class="fa">验证手机号</a>
                            <{else}>
                            <span class="j_myzhxm"><{$user.phone}></span>
                            <{/if}>
                        </div>
                    </div>

                    <{if $user.phone==''}>
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">手机验证码</span>
                        <div class="j_hwjlyny">
                            <input type="text" name="code" class="j_bjzlnxny2" value=""/>
                        </div>
                    </div>
                    <{/if}>

                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">&nbsp;</span>
                         <input type="submit" name="submit" class="j_myzhtj2" value="提交"/>
                    </div>
                </div>

            </div>
        </div>
    </form>

    </div>

</div>
<!-- 主体内容-结束 -->

<{include file="footer.html"}>
